package com.tanhua.model.db;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tanhua.model.vo.OptionsVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

//问题实体类
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_soul_question")//当前实体类对应的数据表名,默认为当前类名首字母小写
public class Questions implements java.io.Serializable {

    private static final long serialVersionUID = -3247732836794933873L;

    private Long id;              //主键id
    private String question;        //题目
    private Long soulid;     //归属id,即这个问题属于哪个试卷


    @TableField(exist = false)      //该字段不存在与数据库
    private List<OptionsVo> options; //试题

}